package org.ogv.tween.ease;

import org.ogv.tween.EaseFunc;

public class EaseInOutQuintic implements EaseFunc {

	@Override
	public float getTweenedVal(float curTime, float startVal, float deltaVal, float duration) {
		float t = duration <= 0 ? 0 : curTime / duration;
		float ts = t * t;
		float tc = ts * t;
		return startVal + deltaVal * (6 * tc * ts + -15*ts*ts + 10*tc);
	}

}
